
/**
 * 伤害
 * magic：魔法
 * physics：物理
 * hurt：伤害
 * true: 真实
 * PH：物理伤害
 * MH: 法术伤害 魔法
 * TH:真实伤害
 */
export class Hurt {
    /** 物理伤害 */
    public PD: number;
    /** 法术伤害 */
    public MD: number;
    /** 真实伤害 */
    public TD: number;
    constructor(PD: number, MD: number, TD: number) {
        this.PD = PD;
        this.MD = MD;
        this.TD = TD;
    }

    /** 合并伤害 */
    // static join(hurts: Hurt[]) {
    //     let PD: number = 0, MD: number = 0, TD: number = 0;
    //     hurts.forEach(hurt => {
    //         PD += hurt.PD;
    //         MD += hurt.MD;
    //         TD += hurt.TD;
    //     })
    //     return new Hurt(PD, MD, TD)
    // }
}
